package cn.wolfcode.crm.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class JsonResult {
    private String msg;
    private boolean success = true;

    public static JsonResult mark(String msg){
        return new JsonResult(msg,false);
    }
    public static JsonResult success(String msg){

        return new JsonResult(msg,true);
    }
}
